package oj.common.core.contants;

public class CacheConstants {
    /**
     * 缓存有效期默认为720（分钟)
     */
    public final static long EXPIRATION = 720;
    public final static long REFRESH_EXPIRATION = 180;
    /**
     * ⽤⼾⾝份认证缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "logintokens:";
    public final static String PHONE_CODE_KEY = "p:c:";

    public final static String CODE_TIME_KEY = "c:t:";

    public final static String EXAM_UNFINISHED_LIST = "e:t:l"; // 未完赛竞赛列表

    public final static String EXAM_HISTORY_LIST = "e:h:l";  // 历史竞赛列表

    public final static String EXAM_DETAIL = "e:d:";    //竞赛详情信息
    //以上三个常量用来定义展示未完赛和历史竞赛的页面

    public final static String USER_EXAM_LIST = "u:e:l:";   //用户竞赛列表
    //这个用来展示我这个用户下有什么竞赛列表

    public final static String USER_DETAIL = "u:d:";   //用户详情信息

    public final static long USER_EXP = 10;
    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t";

    public static final String QUESTION_LIST = "q:l";

    public static final String QUESTION_HOST_LIST = "q:h:l";
    public static final Integer QUESTION_HOT_SIZE =3;

    public static final String EXAM_QUESTION_LIST = "e:q:l:";

    public static final String USER_MESSAGE_LIST = "u:m:l:";

    public static final String MESSAGE_DETAIL = "m:d:";

    public static final String EXAM_RANK_LIST = "e:r:l:";

    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;
}
